package com.example.playedu.service;

import com.example.playedu.dto.PostDto;
import com.example.playedu.entity.Post;
import org.springframework.data.domain.Page;

public interface PostService {
    Page<Post> findAll(int pageNumber, int pageSize);

    void savePost(PostDto postDto);

    Post findById(Long id);

    void destroy(Long id);
}
